﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="DTcms.Web.UI.Page.goods" ValidateRequest="false" %>
<%@ Import namespace="System.Collections.Generic" %>
<%@ Import namespace="System.Text" %>
<%@ Import namespace="System.Data" %>
<%@ Import namespace="DTcms.Common" %>

<script runat="server">
override protected void OnInit(EventArgs e)
{

	/* 
		This page was created by DTcms Template Engine at 2013/9/16 23:38:04.
		本页面代码由DTcms模板引擎生成于 2013/9/16 23:38:04. 
	*/

	base.OnInit(e);
	StringBuilder templateBuilder = new StringBuilder(220000);
	const int channel_id = 2;

	templateBuilder.Append("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n<head>\r\n    <title>销售产品 - ");
	templateBuilder.Append(Utils.ObjectToStr(config.webname));
	templateBuilder.Append("</title>\r\n    <link href=\"");
	templateBuilder.Append(Utils.ObjectToStr(config.templateskin));
	templateBuilder.Append("/images/style.css\" type=\"text/css\" rel=\"stylesheet\">\r\n    <link href=\"");
	templateBuilder.Append(Utils.ObjectToStr(config.templateskin));
	templateBuilder.Append("/images/css.css\" type=\"text/css\" rel=\"stylesheet\">\r\n</head>\r\n<body>\r\n    <!--Header-->\r\n    ");

	templateBuilder.Append("<div class=\"topbg\">\r\n    <div class=\"top_logo\">\r\n        <div class=\"logoright\">\r\n           <!-- <div class=\"homepage\">\r\n                <img src=\"images/gw.gif\" border=\"0\" style=\"margin: 0px 2px 0px 0px; vertical-align: middle;\">\r\n                <a href=\"http://86it.taobao.com/\" style=\"color: #2e2e2e; padding-right: 4px; font: 12px/22px Simsun;\"\r\n                    target=\"_blank\">公司淘宝店</a>\r\n                <img src=\"/images/map.gif\" border=\"0\" style=\"margin: 0px 2px 0px 1px; vertical-align: middle;\">\r\n                <a href=\"/plus/map.asp\" target=\"_blank\">网站地图</a>\r\n            </div>-->\r\n        </div>\r\n    </div>\r\n</div>\r\n<div class=\"clear\">\r\n</div>\r\n<div class=\"daohangbg\">\r\n    <div id=\"nav1\">\r\n        <div class=\"m\">\r\n            <ul>\r\n                <li><span><a href=\"");
	templateBuilder.Append(linkurl("index"));

	templateBuilder.Append("\">网站首页</a></span></li>\r\n                <li><span><a href=\"");
	templateBuilder.Append(linkurl("goods"));

	templateBuilder.Append("\">销售产品</a></span></li>\r\n                <li><span><a href=\"");
	templateBuilder.Append(linkurl("service"));

	templateBuilder.Append("\" title=\"服务项目\">服务项目</a></span></li>\r\n                <li><span><a href=\"#\">IT外包</a></span></li>\r\n                <li><span><a href=\"#\">合作案例</a></span></li>\r\n                <li><span><a href=\"#\">价目清单</a></span></li>\r\n                <li><span><a href=\"#\">软件下载</a></span></li>\r\n                <li><span><a href=\"");
	templateBuilder.Append(linkurl("news"));

	templateBuilder.Append("\">电脑知识</a></span></li>\r\n                <li><span><a href=\"#\">关于我们</a></span></li>\r\n                <li><span><a href=\"#\">联系我们</a></span></li>\r\n            </ul>\r\n        </div>\r\n    </div>\r\n</div>\r\n");


	templateBuilder.Append("\r\n    <!--/Header-->\r\n    <div class=\"blank10 clear\">\r\n    </div>\r\n    <!--top bar-->\r\n    <div class=\"index_main4\">\r\n        <div class=\"tit\">\r\n            产品销售\r\n            <ul class=\"sub_nav\">\r\n                ");
	DataTable category_list1 = get_category_child_list(channel_id, 0);
	

	int cdr1__loop__id=0;
	foreach(DataRow cdr1 in category_list1.Rows)
	{
		cdr1__loop__id++;


	templateBuilder.Append("\r\n                <li class=\"n");
	templateBuilder.Append(cdr1__loop__id.ToString());
	

	templateBuilder.Append("\"><a href=\"");
	templateBuilder.Append(linkurl("goods_list",Utils.ObjectToStr(cdr1["id"])));

	templateBuilder.Append("\">\r\n                    " + Utils.ObjectToStr(cdr1["title"]) + "</a></li>\r\n                ");
	}	//end loop


	templateBuilder.Append("\r\n            </ul>\r\n        </div>\r\n    </div>\r\n    <!--/top bar-->\r\n    <div class=\"blank10 clear\">\r\n    </div>\r\n    <!--主体内容-->\r\n    <div class=\"photomain3\">\r\n        <div class=\"left\">\r\n            <div class=\"left01\">\r\n                <div class=\"tit\">\r\n                    产品分类\r\n                </div>\r\n                <div class=\"left01box\">\r\n                    <ul class=\"navbar\">\r\n                        ");
	DataTable category_list2 = get_category_child_list(channel_id, 0);
	

	int cdr2__loop__id=0;
	foreach(DataRow cdr2 in category_list2.Rows)
	{
		cdr2__loop__id++;


	templateBuilder.Append("\r\n                        <li>\r\n                            <h4>\r\n                                <a href=\"");
	templateBuilder.Append(linkurl("goods_list",Utils.ObjectToStr(cdr2["id"])));

	templateBuilder.Append("\">" + Utils.ObjectToStr(cdr2["title"]) + "</a></h4>\r\n                            <div class=\"list\">\r\n                                ");
	DataTable category_list21 = get_category_child_list(channel_id, Utils.StrToInt(Utils.ObjectToStr(cdr2["id"]), 0));
	

	int cdr21__loop__id=0;
	foreach(DataRow cdr21 in category_list21.Rows)
	{
		cdr21__loop__id++;


	templateBuilder.Append("\r\n                                <a href=\"");
	templateBuilder.Append(linkurl("goods_list",Utils.ObjectToStr(cdr21["id"])));

	templateBuilder.Append("\">" + Utils.ObjectToStr(cdr21["title"]) + "</a>\r\n                                ");
	}	//end loop


	templateBuilder.Append("\r\n                            </div>\r\n                        </li>\r\n                        ");
	}	//end loop


	templateBuilder.Append("\r\n                    </ul>\r\n                </div>\r\n                <div class=\"bot\">\r\n                </div>\r\n            </div>\r\n            <div class=\"blank10 clear\">\r\n            </div>\r\n            <div class=\"left01\">\r\n                <div class=\"tit\">\r\n                    精品推荐</div>\r\n                <div style=\"border-left: #E6E6E6 1px solid; border-right: #E6E6E6 1px solid;\">\r\n                    <div class=\"focus_list\">\r\n                        <ul>\r\n                            ");
	DataTable redgoods = get_goods_list(channel_id, 0, 9, "is_red=1 and img_url<>''");
	

	int reddr__loop__id=0;
	foreach(DataRow reddr in redgoods.Rows)
	{
		reddr__loop__id++;


	templateBuilder.Append("\r\n                            <li><a title=\"" + Utils.ObjectToStr(reddr["title"]) + "\" href=\"");
	templateBuilder.Append(linkurl("goods_show",Utils.ObjectToStr(reddr["id"])));

	templateBuilder.Append("\">\r\n                                <img src=\"" + Utils.ObjectToStr(reddr["img_url"]) + "\" width=\"100\" height=\"100\" alt=\"" + Utils.ObjectToStr(reddr["title"]) + "\" />\r\n                                <span>");
	templateBuilder.Append(Utils.DropHTML(Utils.ObjectToStr(reddr["title"]),5));

	templateBuilder.Append("</span> </a></li>\r\n                            ");
	}	//end loop


	templateBuilder.Append("\r\n                        </ul>\r\n                        <div class=\"clear\">\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"bot\">\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class=\"right\">\r\n            <div class=\"tit\">\r\n                商品展示</div>\r\n            <div class=\"rightbox\">\r\n                <ul>\r\n                    ");
	DataTable goods_list = get_goods_list(channel_id, 0, 16, "is_red=1");
	

	int listdr__loop__id=0;
	foreach(DataRow listdr in goods_list.Rows)
	{
		listdr__loop__id++;


	templateBuilder.Append("\r\n                    <li style=\"height: 200px;\">\r\n                        <div>\r\n                            <a href=\"");
	templateBuilder.Append(linkurl("goods_show",Utils.ObjectToStr(listdr["id"])));

	templateBuilder.Append("\" title=\"" + Utils.ObjectToStr(listdr["title"]) + "\">\r\n                                <img width=\"142\" height=\"130\" src=\"" + Utils.ObjectToStr(listdr["img_url"]) + "\" alt=\"" + Utils.ObjectToStr(listdr["title"]) + "\"></a></div>\r\n                        <div class=\"title\">\r\n                            <a href=\"");
	templateBuilder.Append(linkurl("goods_show",Utils.ObjectToStr(listdr["id"])));

	templateBuilder.Append("\" title=\"" + Utils.ObjectToStr(listdr["title"]) + "\">\r\n                                ");
	templateBuilder.Append(Utils.DropHTML(Utils.ObjectToStr(listdr["title"]),20));

	templateBuilder.Append("</a></div>\r\n                    </li>\r\n                    ");
	}	//end loop


	templateBuilder.Append("\r\n                </ul>\r\n            </div>\r\n        </div>\r\n        <div class=\"clear\">\r\n        </div>\r\n    </div>\r\n    <!--/主体内容-->\r\n    <div class=\"blank10 clear\">\r\n    </div>\r\n    <!--Footer-->\r\n    ");

	templateBuilder.Append("<div class=\"indexbot\">\r\n    <div class=\"foot\">\r\n        <a href=\"\">关于我们</a> | <a href=\"\">联系我们</a> | <a href=\"#\">服务报价单</a> | <a href=\"/plus/map.asp\"\r\n            target=\"_blank\">网站地图</a>\r\n    </div>\r\n    <div id=\"copyright\">\r\n        ");
	templateBuilder.Append(Utils.ObjectToStr(config.webcopyright));
	templateBuilder.Append("，");
	templateBuilder.Append(Utils.ObjectToStr(config.webcompany));
	templateBuilder.Append(". <a href=\"http://www.miibeian.gov.cn\">");
	templateBuilder.Append(Utils.ObjectToStr(config.webcrod));
	templateBuilder.Append("</a><br>\r\n        ");
	templateBuilder.Append(Utils.ObjectToStr(config.webcountcode));
	templateBuilder.Append("\r\n    </div>\r\n</div>\r\n");


	templateBuilder.Append("\r\n    <!--/Footer-->\r\n</body>\r\n</html>\r\n");
	Response.Write(templateBuilder.ToString());
}
</script>
